<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableFans extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fans', function(Blueprint $table)
        {
            $table->increments('id')->comment('自增长');
            $table->integer('uid')->comment('被关注者ID');
            $table->string('fid')->comment('粉丝ID');
            $table->unsignedInteger('create_time')->comment('关注时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('fans');
    }
}
